<include file="public:ucheader"/>
<script language="javascript" type="text/javascript" src="__ROOT__/statics/js/jquery/plugins/formvalidator.js"></script>
<script language="javascript" type="text/javascript" src="__ROOT__/statics/js/jquery/plugins/formvalidatorregex.js"></script>


<link href="__ROOT__/statics/css/formvalidator.css" rel="stylesheet" type="text/css" />
<!--全局样式-->
<load href="__TMPL__public/css/uc/common.css" />
<!--样式-->
<load href="__TMPL__public/css/uc/css_b.css" />
<load href="__TMPL__public/css/ucindex.css" /> 
<load href="__TMPL__public/css/account.css" /> 
<div class="ucleft">
	<!--用户-->
    <include file="userleft"/>
    <!--用户-->
   
    <br clear="all"/>
</div>
<div class="ucright">
	<div class="ucnav">
 		<ul>
        	<li><a href="{:u('uc/account_basic')}">基本信息</a></li>
            <li><a href="{:u('uc/account_face')}">上传头像</a></li>
            <li><a href="{:u('uc/account_sns')}">账号绑定</a></li>
            <li><a <eq name="ACTION_NAME" value="account_pwd"> class="navon" </eq>  href="{:u('uc/account_pwd')}">修改密码</a></li>
        </ul>    	    
    </div>
    <div class="uccontent">

    <div class="uc_account clearfix"> 
		
        
        <!--右侧-->
        <div class="right_region exchange">
  
        <div class="right_region account" style="height: auto;">
			<present name="err">
            <div class="err"  style="width:150px;">
		        <div class="icon_{$err.err}">{$err.msg}</div>                
            </div>
            </present> 
            <form name="myform" id="myform" action="" method="post">
            
                <table>
                    <tr>
                        <th style="width:100px;">当前密码：</th>
                        <td><input type="password" value="" name="passwd" class="input_text"/></td>
                    </tr>
                    <tr>
                        <th>新密码：</th>
                        <td><input type="password" value="" id="new_pwd" name="new_pwd" class="input_text"/></td>
                    </tr>                
                    <tr>
                        <th>确认新密码：</th>
                        <td><input type="password" value="" id="confirm_pwd" name="confirm_pwd" class="input_text"/></td>
                    </tr>                
                    <tr>
                        <th></th>
                        <td><input type="submit" class="submit" value="确定" name="dosubmit"/></td>
                    </tr>
                </table>            
            </form>       
        </div>
    </div>
    </div>

        
        
        
        
        
        
        
        
        
        
        
    </div>
</div>
<script type="text/javascript">
$(function(){ 
	$.formValidator.initConfig({formid:"myform",autotip:true,
		onerror:function(msg,obj){
			art.dialog({content:msg,lock:true,width:'200',height:'50'}, 
					   function(){this.close();$(obj).focus();})
			}
	});
		
	$("#passwd").formValidator({onshow:"填写密码",onfocus:"填写6位以上密码"})
		.inputValidator({min:6,onerror:"请填写6位以上密码"});
		
	$("#new_pwd").formValidator({onshow:"填写密码",onfocus:"填写6位以上密码"})
		.inputValidator({min:6,onerror:"请填写6位以上密码"});

	$("#confirm_pwd").formValidator({onshow:"确认密码",onfocus:"确认密码",oncorrect:"填写正确"})
		.inputValidator({min:6,onerror:"请填写6位以上密码"})
		.compareValidator({desid:"new_pwd",operateor:"=",onerror:"两次输入密码不一致"});	
});
</script>
<include file="public:footer"/> 